package com.bxm.springboot.test.controller;

import com.bxm.springboot.test.aspect.CacheRedisService;
import test.Config;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    @Autowired
    private Config config;

    @Autowired
    private CacheRedisService cacheRedisService;

    @RequestMapping("/")
    public String home(){
        System.out.println(config);
        cacheRedisService.test(1);


        cacheRedisService.test1("1");
        return "Hello world";
    }
}
